const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,  // 用户token
  userId: state => state.user.userInfo.userId,  // 用户id
  avatar: state => state.user.userInfo.staffPhoto,  // 用户头像
  name: state => state.user.userInfo.username,  // 用户名
  routes: state => state.user.routes  ,// 路由配置信息
  company: state => state.user.userInfo.company,  // 用户公司名
  departmentName: state => state.user.userInfo.departmentName  // 用户部门名称
}
export default getters
